home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / tango-icon-theme.postrm < prev    next >
Encoding:
Text File  |  2006-08-29  |  796 b   |  19 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_iconcache
  4. [ -d /usr/share/icons/Tango ] && touch -m /usr/share/icons/Tango || true
  5. if [ "$1" = "remove" ] && \
  6.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  7.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  8.        if [ "`find /usr/share/icons/Tango -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  9.        [ "`find /usr/share/icons/Tango -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  10.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  11.         # it's not important enough
  12.         gtk-update-icon-cache -q /usr/share/icons/Tango || true;
  13.     else
  14.         # if the icon theme directory has no subdirs, we can remove the cache
  15.         rm -f /usr/share/icons/Tango/icon-theme.cache || true;
  16.     fi
  17. fi
  18. # End automatically added section
  19.